package com.opengroupe.dao;

import com.opengroupe.entities.AccessCode;

/**
 * 
 * @author MMB11447
 *
 */
public interface AccessCodeDao extends Dao<AccessCode> {

	/**
	 * Returns the {@link AccessCode} corresponding to given id.
	 * 
	 * @param id {@link String} AccessCode's Id.
	 * @return {@link AccessCode}
	 */
	public AccessCode findById(String id);
	
	/**
	 * Returns the last generated {@link AccessCode}
	 * 
	 * @return {@link AccessCode}
	 */
	public AccessCode lastGeneratedCode();
}
